#ifndef GUI_WINDOW
#define GUI_WINDOW

#include "button.h"

namespace sleek
{
    namespace gui
    {
        class window : public frame
        {
            public:
                window(core::engine::interface*);
                ~window();
                virtual INTERFACE_GUI_CODE getType() { return IGT_WINDOW; }

                virtual button *getCloseButton();
                virtual void move(core::math::vector2di);
                virtual void setScale(core::math::vector2di i);

                virtual bool manage(core::device::input*);
                virtual void render();
            protected:
                button *close;
                void UpdateFontPos();
            private:
                core::math::vector2di def;
                bool isHovored, isMoved;
                friend class theme;

                core::u32 title_size;
        };
    }
}

#endif

